By understanding pause times , we can begin to understand if gc is partially or wholly responsible for an application becoming unresponsive 理解了暫停時間,我們就可以理解gc對應(yīng)用程序不響應(yīng)是否負(fù)有部分或者全部責(zé)任了。
Two of the new collectors are designed to reduce collection pause time - the parallel copying collector and the concurrent mark - sweep collector 新收集器中的兩個并行復(fù)制收集器和并發(fā)標(biāo)記-清除收集器設(shè)計為減少收集暫停時間。
In many server applications , it comes down to reducing pause times , which entails reducing the duration and number of full collections that occur 在許多服務(wù)器應(yīng)用程序中,它歸結(jié)為縮短暫停時間,這又歸結(jié)為減少所發(fā)生的完全收集的持續(xù)時間和次數(shù)。
If your application is single - threaded and involves heavy user interaction , leave concurrent garbage collection enabled to minimize the application s pause time to perform garbage collection 如果您的應(yīng)用程序是單線程應(yīng)用程序且涉及頻繁的用戶交互,請啟用并發(fā)垃圾回收,這樣可最大程度地減少因執(zhí)行垃圾回收而需暫停應(yīng)用程序的時間。